#!/bin/sh

usage() {
  echo "syntax:" 
  echo "$0 <input file> <# of partitions> <# of clients>"
  exit
}

if [ $# -lt 3 ]
then
  usage
fi

input=$1
n_part=$2
n_clients=$3

java -Xmx2048m -cp bin:tspaces/lib/tspaces_client.jar wordcount.Master \
  $input $n_part $n_clients >output_java
